<template>
<div>
        <header>组件B页面</header>
        <div class="page">
                <div>query: {{route}}</div>
        </div>
</div>
</template>
    
<script setup lang='ts'>
import { useRoute } from 'vue-router';
const route = useRoute();
    console.log('route-b:', route.query);
</script>
    
<style scope>
     .page {
                width: 100%;
                height: 500px;
                background-color: rgb(205, 102, 17);
        }
</style>